import 'package:flutter_getx_project/main/main_binding.dart';
import 'package:flutter_getx_project/main/main_page.dart';
import 'package:flutter_getx_project/pages/home/home_binding.dart';
import 'package:flutter_getx_project/pages/home/home_page.dart';
import 'package:flutter_getx_project/pages/login/login_binding.dart';
import 'package:flutter_getx_project/pages/login/login_page.dart';
import 'package:get/get.dart';
import 'package:x_project/x_project.dart';

/// Created by XieXin on 2020/3/20.
/// Main路由
class MainRouter {
  static const String homePage = '/HomePage';
  static final routes = [
    GetPage(
      name: CommonRouter.main,
      page: () => MainPage(),
      binding: MainBinding(),
    ),
    GetPage(
      name: homePage,
      page: () => HomePage(),
      binding: HomeBinding(),
    ),
    GetPage(
      name: CommonRouter.login,
      page: () => LoginPage(),
      binding: LoginBinding(),
    ),
  ];
}
